package com.eve.util.http;

import com.eve.util.AES;
import org.apache.commons.lang3.StringUtils;

/**
 * @author: ivan.yao<haif.yao@gmail.com>
 * @date: 16/7/28.
 */
public class RedirectHelper {

    public static String getEncodeRequestUrl(String url){
        return AES.Encrypt(url);
    }

    public static String getDecodeRequestUrl(String url){
        if(StringUtils.isNotBlank(url)){
            return AES.Decrypt(url);
        }
        return null;
    }
}
